package com.ruoyi.employment.service.impl;

import java.util.HashMap;
import java.util.List;

import com.ruoyi.student.domain.XzkStudent;
import com.ruoyi.student.mapper.XzkStudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.employment.mapper.XzkEmploymentMapper;
import com.ruoyi.employment.domain.XzkEmployment;
import com.ruoyi.employment.service.IXzkEmploymentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 就业学员表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
@Service
public class XzkEmploymentServiceImpl implements IXzkEmploymentService 
{
    @Autowired
    private XzkEmploymentMapper xzkEmploymentMapper;

    @Autowired
    private XzkStudentMapper xzkStudentMapper;





    /**
     * 查询就业学员表
     * 
     * @param employmentid 就业学员表ID
     * @return 就业学员表
     */
    @Override
    public XzkEmployment selectXzkEmploymentById(Long employmentid)
    {
        return xzkEmploymentMapper.selectXzkEmploymentById(employmentid);
    }

    /**
     * 查询就业学员表列表
     * 
     * @param xzkEmployment 就业学员表
     * @return 就业学员表
     */
    @Override
    public List<XzkEmployment> selectXzkEmploymentList(XzkEmployment xzkEmployment)
    {
        return xzkStudentMapper.selectXzkEmploymentList(xzkEmployment);
    }

    /**
     * 新增就业学员表
     * 
     * @param xzkEmployment 就业学员表
     * @return 结果
     */
    @Override
    public int insertXzkEmployment(XzkEmployment xzkEmployment)
    {
        return xzkEmploymentMapper.insertXzkEmployment(xzkEmployment);
    }

    /**
     * 修改就业学员表
     * 
     * @param xzkEmployment 就业学员表
     * @return 结果
     */
    @Override
    public int updateXzkEmployment(XzkEmployment xzkEmployment)
    {
        return xzkEmploymentMapper.updateXzkEmployment(xzkEmployment);
    }

    /**
     * 删除就业学员表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteXzkEmploymentByIds(String ids)
    {
        return xzkEmploymentMapper.deleteXzkEmploymentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除就业学员表信息
     * 
     * @param employmentid 就业学员表ID
     * @return 结果
     */
    @Override
    public int deleteXzkEmploymentById(Long employmentid)
    {
        return xzkEmploymentMapper.deleteXzkEmploymentById(employmentid);
    }

    @Override
    public List<XzkStudent> selectXzkEmploymentList3(XzkStudent xzkEmployment,String userName) {
        return xzkStudentMapper.selectXzkEmploymentStudentList(xzkEmployment,userName);
    }

}
